import javax.swing.*;
import java.awt.*;

/**
 * The SupervisorPanel displays all the users and their statuses
 * @author Henry Yuen
 *
 */
public class SupervisorPanel extends JPanel {

	private JTabbedPane tabbedPane;


	public SupervisorPanel() {

		initUI();
	}

	/**
	 * Initialize the UI components for teh Supervisor Panel
	 *
	 */
	private void initUI() {
		setLayout(new GridBagLayout());

		GridBagConstraints cons = new GridBagConstraints();
		cons.gridx = cons.gridy = 0;
		cons.weightx = cons.weighty = 1;
		cons.fill = cons.BOTH;

		tabbedPane = new JTabbedPane();
		tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);

		tabbedPane.addTab("Traffic Manager",new TrafficManagerPanel());
		tabbedPane.addTab("Flight Data/Clearance Delivery", new FlightDataPanel());
		tabbedPane.addTab("Ground Control", new GroundControlPanel());
		tabbedPane.addTab("Local Control", new LocalControlPanel());
		tabbedPane.addTab("Helicopter Control", new HelicopterControlPanel());

		add(tabbedPane,cons);

	}

}
